Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 3ca92e892dfa54dea67c31260624eaa25db4df39


Parents : 8b7d461
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-01-14T11:12:11+01:00

Cleanup

Changes

1 files changed, 1 insertions(+), 1 deletions(-)

M Utilities.h +1 -1

Diff

diff --git a/Utilities.h b/Utilities.h
index 15a6bd1..fa45296 100644
--- a/Utilities.h
+++ b/Utilities.h
@@ -513,7 +513,7 @@ void eeprom_update(int mapped_addr, uint8_t byte) {
}
void eeprom_write(uint8_t addr, uint8_t byte) {
- if (!eeprom_info_locked() && (addr >= 0) && (addr < EEPROM_RESERVED)) {
+ if (!eeprom_info_locked() && addr >= 0 && addr < EEPROM_RESERVED) {
eeprom_update(eeprom_addr(addr), byte);
} else {
kiss_indicate_error(ERROR_EEPROM_LOCKED);


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────